package designPattern.state
{
	import flash.net.NetStream;
	
	public class StopState implements IState
	{
		private var works:IWorks;
		public function StopState(w:IWorks)
		{
			this.works = w;
		}
		
		public function startPlay(ns:NetStream, url:String):void
		{
			ns.play(url);
			works.setState(works.getPlayState());
		}
		
		public function startStop(ns:NetStream):void
		{
			trace("You are already stop.");
		}
		
		public function doPause(ns:NetStream):void
		{
			trace("Can not pause on stop model.");
		}
	}
}